﻿#include "iQTextDocumentFragment.h"


QString iQTextDocumentFragment::toMarkdown(QTextDocument::MarkdownFeatures features) const
{
	QString string = QTextDocumentFragment::toMarkdown(features);
	//qDebug() << string;
	if(string != "")
	regexDelNewLine(string);
	//if (string == "")string = "\n";
	//qDebug() << string+"&&&&&";
	return string;
}

QString iQTextDocumentFragment::toPlainText() const
{
	QString string = QTextDocumentFragment::toPlainText();
	if (string != "")
		regexDelNewLine(string);
	return string;
}
